<template>
	<view>
		<image src="/static/xgbj.png" class="qjimg" mode=""></image>
		<view class="title">
			<image @click="fanhui" src="/static/zfh.png" :style="'margin-top:'+top+'px;'" mode=""></image>
			<view class="toptit" :style="'margin-top:'+top+'px;'">
				业主详情
			</view>
			<view class="" style="opacity: 0;">12</view>
		</view>
		<view class="maxbox">
			<view class="box_title">
				业主信息
			</view>
			<view class="box_1">
				<view class="box_1-1">
					业主姓名： <text style="color: #333333;">{{info.name}}</text>
				</view>
				<view class="box_1-1">
					联系方式： <text style="color: #333333;">{{info.hidephone}}</text>
				</view>
				<view class="box_1-1">
					绑定时间： <text style="color: #333333;">{{info.ctime}}</text>
				</view>
				<view class="box_1-1" style="display: flex;">
					房产信息： <view style="color: #333333;">
						<view class="" style="margin-bottom: 30rpx" v-for="(item,index) in info.rooms" :key="index">
							{{item.roomname}}
						</view>

					</view>
				</view>
			</view>

			<view class="box" v-for="(item,index) in list" :key="index">
				<view class="box1" style="margin-top: 20rpx;">
					<view class="box1text">
						绑定时间：{{info.ctime}}
					</view>
					<view class="box1text1">

					</view>
				</view>
				<view class="box2">
					<view class="box2-1" style="margin-left: 30rpx;">
						<view class="" style="display: flex;justify-content: space-between;">
							<view class="box2-1text">
								{{item.roomname}}
								<view class="box2-1text1">
									{{item.name}}
								</view>
							</view>
							<image style="width: 32rpx;height: 32rpx;margin-right: 60rpx;" src="../../static/ydh.png"
								mode=""></image>
						</view>

						<view class="box2-1-1">
							<view class="box2-1-1box">
								{{item.shenfen}}
								<view class="">
									身份类型
								</view>
							</view>
							<view class="box2-1-1box1">
								<view class="box2-1-1box1_text">
									{{info.formattype}}
								</view>
								<view class="box2-1-1box1_text1">
									绑定类型
								</view>
							</view>
							<view class="box2-1-1box1" style="margin-right: 60rpx;">
								<view class="box2-1-1box1_text">
									{{item.hidephone}}
								</view>
								<view class="box2-1-1box1_text1">
									联系方式
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>


		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				top: 0,
				roomId: '',
				info: '',
				list: [],

			}
		},
		onLoad(e) {
			this.roomId = e.id
			let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
			this.top = menuButtonInfo.top * 1 + 6
			this.getinfo()
		},
		methods: {
			getinfo() {
				this.$post('wuyecenter/yezhuinfo', {
					roomId: this.roomId,
				}, res => {
					this.info = res.data.owner
					this.list = res.data.list
				})
			},
			fanhui() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #fafafa;
	}

	.qjimg {
		width: 750rpx;
		height: 603rpx;
		position: absolute;
		top: 0;
		z-index: -1;
	}

	.title {
		display: flex;
		justify-content: space-between;
		align-items: center;

		>image {
			width: 20rpx;
			height: 35rpx;
			margin-left: 30rpx;
		}
	}

	.toptit {
		text-align: center;
		font-size: 36rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #ffffff;
	}

	.maxbox {
		width: 698rpx;
		margin: 0 auto;
		margin-top: 50rpx;
		background-color: #fafafa;
		border-radius: 15rpx;
		overflow: hidden;
	}

	.box_title {
		margin: 40rpx 0;
		border-left: 12rpx solid #4ab6f9;
		height: 33rpx;
		width: 150rpx;
		text-align: center;
		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #333333;
		line-height: 33rpx;
	}

	.box_1 {
		margin-left: 30rpx;
	}

	.box_1-1 {
		margin: 30rpx 0;
		font-size: 24rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #999999;
		// line-height: 20rpx;
	}

	.box1 {
		width: 685rpx;
		height: 63rpx;
		margin: 0 auto;

		background-image: linear-gradient(to right, #c0f5ee, #ffffff);

		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.box1text {
		margin-left: 30rpx;
		font-size: 20rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #333333;
		line-height: 20rpx;
	}

	.box1text1 {
		margin-right: 30rpx;
		font-size: 20rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #333333;
		line-height: 20rpx;
	}

	.box2 {
		width: 685rpx;
		margin: 0 auto;
		background-color: white;
		border-bottom-left-radius: 15rpx;
		border-bottom-right-radius: 15rpx;
	}

	.box2-1 {
		padding: 30rpx 0;
	}

	.box2-1text {
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #000000;
		line-height: 20rpx;
		display: flex;
		align-items: center;
	}

	.box2-1text1 {
		margin-left: 16rpx;
		width: 92rpx;
		height: 36rpx;
		background-color: #e6eeff;
		border-radius: 5%;
		font-size: 18rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #2D75FC;
		text-align: center;
		line-height: 36rpx;
	}

	.box2-1-1 {
		margin-top: 40rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.box2-1-1box {
		font-size: 36rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #DB203A;
		line-height: 50rpx;

		>view {
			font-size: 24rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #999999;
			line-height: 24rpx;
		}

	}

	.box2-1-1box1 {
		// margin-left: 180rpx;
	}

	.box2-1-1box1_text {
		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #333333;
		line-height: 50rpx;
		display: flex;
		align-items: center;

		>image {
			margin-left: 18rpx;
			width: 32rpx;
			height: 32rpx;
		}
	}

	.box2-1-1box1_text1 {
		font-size: 24rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #999999;
		line-height: 24rpx;
	}
</style>
